<template>
    <el-button type="primary" plain @click="goBack">回到首页</el-button>
    <div style="display: flex; justify-content: center; align-items: center;">
        <img src="../assets/404NotFound.png" style="width: 64%; height: 36%;" alt="404NotFound">
    </div>
</template>

<script setup>
// 路由实例，用于页面导航操作（如跳转、返回等）
import {useRouter} from "vue-router";

let router = useRouter();
/**
 * 回到首页函数
 * 功能：通过路由实例的push方法实现页面跳转导航
 */
const goBack = () => {
    router.push('/dashboard').then(() => {
        location.reload();
    });
}
</script>

<style scoped>
</style>